/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.live_vod_backend_facade.enums;

/**
 *
 * @author Administrator
 */
public enum LivePunishTypeEnum {
    //处罚对象:0罚款,1直播流,2直播间
    LIVE_CURRENCY(0, "视频币"),
    LIVE_STREAM(1, "直播流"),
    LIVE_HOME(2, "直播间");
    


    LivePunishTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesByCode(Integer code) {
        for (LivePunishTypeEnum statusEnum : LivePunishTypeEnum.values()) {
            if (statusEnum.getCode().equals(code)) {
                return statusEnum.getDesc();
            }
        }
        return code.toString();
    }

    
    private Integer code;
    private String desc;


    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }    
}
